<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title>Sanmu resources manage system.</title>
    <%= stylesheet_link_tag 'main' %>
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag "in_place_select_editor" %>
  </head>
  <body class="overview">

    <div id="Header" class="global">
      <h3>
        <%= current_user.name %>
        <span class="pipe">|</span>
        <a href="/logout">注销</a>
      </h3>
      <h1>Sanmu RM</h1>
      <div id="Tabs">
        <ul id="Maintabs">
          <li class="with_space"><a class="<%= get_current_page("index") %>" href="/">首页</a></li>
          <li><a class="<%= get_current_page("projects") || get_current_page("requirements") || get_current_page("issues") %>" href="/projects/all">项目</a></li>
          <li><a class="<%= get_current_page("tags") %>" href="/tags">版本标签</a></li>
          <li><a class="<%= get_current_page("users") %>" href="/users">工作量分布</a></li>
          <% if nil %>
          <li><a class="<%= get_current_page("memos") %>" href="/memos">工作日志</a></li>
          <% end %>
          <% if current_user.has_role?("admin") || current_user.has_role?("pdm") %>
          <li><a class="<%= get_current_page("admin/users") || get_current_page("admin/roles") %>" href="/admin">设置</a></li>
          <% end %>
                    
        </ul>
      </div>
    </div>

    <div id="wrapper" style="position: relative;">
      <div id="swap_to"></div>
        <div id="swap_from">
          <div id="screen_body" class="container">
            <div class="Left">
              <div class="col">
                <div class="page_header"><%= yield :other_index %><h1 class="index"><%= yield :page_head %></h1></div>
                <div class="innercol">
                  <%= yield %>
                </div>
              </div>
              <div class="bottom"> </div>
            </div>
            <div class="Right">
              <div class="col sidebar">
                <%= yield :right_side %>
              </div>
            </div>
            <div style="clear: both;"/>
          </div>
          <div style="clear: both;"/>
        </div>
    </div>


  </body>
</html>
